package com.example.repeatsubmit.annotation;

import com.example.repeatsubmit.enums.RepeatSubmitPolicyEnum;

import java.lang.annotation.*;

/**
 * @author caoqianhuan
 * @date 2022/8/19
 * @Description:
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CloseRepeatSubmit {
    RepeatSubmitPolicyEnum policy() default RepeatSubmitPolicyEnum.TIME_INNER_REFUSE;

    long interval() default 0L;
}
